//
//  HYFileDownloadService.h
//  VideoFileDownloadDemo
//
//  Created by liguoqing on 2023/8/25.
//

#import <BaseWithRAC/LoadDataService.h>

@class HYFileDownloadTask;

NS_ASSUME_NONNULL_BEGIN

@interface HYFileDownloadService : LoadDataService

/**
 *  下载ID前缀
 */
@property (nonatomic, readonly) NSString *downloadIDPrefix;

/**
 *  忽略下载流量提醒
 */
@property (nonatomic, assign) BOOL ingoreMobileNetWarning;

/**
 *  单例
 */
+ (instancetype)sharedInstance;

/// 查找或创建一个下载
- (HYFileDownloadTask *)findOrCreateOneTaskWithDownloadID:(NSString *)downloadID
                                             downloadURL:(NSString *)downloadURL
                                                fileName:(NSString *)fileName;

@end

NS_ASSUME_NONNULL_END
